package com.freecloud.javabasics.network.rpc.server.provider;

import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: maomao
 * @Date: 2020-03-15 22:01
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Component//被spring进行扫描
public @interface RpcService {

    Class<?> value();//拿到服务的类
}
